package pri.jz.keeper.webservice.retrofit

import pri.jz.keeper.webservice.entityT.UserT
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 *Author by: JZ
 *Email: 2451756617@qq.com
 *PS:用于Retrofit
 */
interface UserService {
    @GET("user/getUser/number")
    suspend fun getUser(@Query("number") number: String): UserT
    @GET("user/getUser/id")
    suspend fun getUser(@Query("id") id: Int): UserT
    @POST("user/addUser")
    suspend fun addUser(@Body userT: UserT): Int
    @GET("user/loading")
    suspend fun userLoading(@Query("id") id: Int): UserT
    @POST("user/modify")
    suspend fun modifyUser(@Body userT: UserT): Int


}